# 计数功能
'''
#while循环实现
count = 0
while count < 100:
    print(f"process: {count}")
    count += 1

for循环实现
for count in range(100):
    print(f"The process:{count}")

'''
'''
fibs = [0, 1]
for i in range(10):    #一共循环10次,这里的i只是起到了代表循环次数的作用
    fibs.append(fibs[-2] + fibs[-1])
print(fibs)
'''

'''----这个到了144，不太行
fibs = [0, 1]
while True:
    if fibs[-1] < 100:
        fibs.append(fibs[-2] + fibs[-1])
    else:
        break
print(fibs)
'''

#while循环来实现
'''
i = 0
a = 0
j = 1
while i < 100:
    print(i, end=' ')
    a = i
    i = j
    j = a + i
# 或者直接这样：i, j =j, i+j  # i,j是并列赋值，类似于C语言里面的交换变量的方法，这是python独特的优势所在
'''
